FROM 10.0.100.114/library/nginx-php-fpm:latest

RUN apt-get update && apt-get install -y --no-install-recommends cron vim \
    && rm -rf /var/lib/apt/lists/* \
    && apt-get clean

COPY docker-entrypoint.sh /root/docker-entrypoint.sh

RUN touch /var/log/cron.log && \
    chown -R www-data:www-data /var/log/cron.log && \
    chmod a+x /root/docker-entrypoint.sh

CMD ["/root/docker-entrypoint.sh"]